#ifndef FILEMENULIST_H
#define FILEMENULIST_H

#include "MainFrame/MenuBar/MenuListBase.h"

class QTranslator;

class FileMenuList : public MenuListBase
{
    Q_OBJECT
public:
    explicit FileMenuList(const QString &title, QWidget *parent = Q_NULLPTR);
    virtual ~FileMenuList();

private:
    void loadTransFile(const QString& strFilePath);
    virtual void changeEvent(QEvent *event);
    void initTrans();

signals:
    void closeMainFrame();
    void openImageSignal(const QString& strImageName);

public slots:
    void newImageSlot();
    void openImageSlot();
    void saveImageSlot();
    void change2ChineseSlot();
    void change2EnglishSlot();

private:
    QAction* m_pNewImageAction;
    QAction* m_pOpenImageAction;
    QAction* m_pSaveImageAction;
    QAction* m_pExitActoin;

    QAction* m_pchange2Chinese;
    QAction* m_pchange2English;

    QTranslator* m_pTrans;
};

#endif // FILEMENULIST_H
